package com.timebank.volunteer.mapper;

import com.timebank.volunteer.pojo.entity.VolunteerType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author shiliuyinzhen
 */
@Mapper
public interface VolunteerTypeMapper {

    /**
     * 新增志愿服务类型
     * @param volunteerTypeId
     * @param volunteerTypeName
     * @return
     */
    int insertVolunteerType(@Param("typeId") Long volunteerTypeId, @Param("typeName") Integer volunteerTypeName);

    /**
     * 获取志愿服务类型列表
     * @param volunteerType
     * @return
     */
    List<VolunteerType> selectVolunteerTypeList(VolunteerType volunteerType);
}
